package com.heal.entity;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException {
  private static final long serialVersionUID = -4128652785823304495L;

  private Integer errorCode;
  private String msg;

  public BusinessException(Integer errorCode) {
    super();
    this.errorCode = errorCode;
  }

  public BusinessException(String msg) {
    this.msg = msg;
  }

  public BusinessException(String msg, Integer errorCode) {
    super();
    this.msg = msg;
    this.errorCode = errorCode;
  }
}
